package com.ftg.learn.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 选择题_选项表
 * </p>
 *
 * @author kangjx
 * @since 2022-03-12
 */
@TableName("exam_questiondetail")
@ApiModel(value = "Questiondetail对象", description = "选择题_选项表")
public class Questiondetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty("选项名称")
    private String title;

    @ApiModelProperty("所属题干")
    private Long qid;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("逻辑删除字段")
    @TableLogic
    private Integer isdeleted;

    @ApiModelProperty("判断题是否，为正确答案，0为错误 1为正确")
    private Integer isright;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public Long getQid() {
        return qid;
    }

    public void setQid(Long qid) {
        this.qid = qid;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getIsdeleted() {
        return isdeleted;
    }

    public void setIsdeleted(Integer isdeleted) {
        this.isdeleted = isdeleted;
    }
    public Integer getIsright() {
        return isright;
    }

    public void setIsright(Integer isright) {
        this.isright = isright;
    }

    @Override
    public String toString() {
        return "Questiondetail{" +
            "id=" + id +
            ", title=" + title +
            ", qid=" + qid +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", isdeleted=" + isdeleted +
            ", isright=" + isright +
        "}";
    }
}
